using System;
using System.Collections.Generic;
using System.Threading;

using Sce.Pss.HighLevel.GameEngine2D;
using Sce.Pss.HighLevel.GameEngine2D.Base;
using Sce.Pss.HighLevel.Physics2D;

using Sce.Pss.Core;
using Sce.Pss.Core.Environment;
using Sce.Pss.Core.Graphics;
using Sce.Pss.Core.Imaging;
using Sce.Pss.Core.Input;

using System.IO;
using System.Net;
using System.Xml;
using System.Runtime;
using System.ComponentModel;
using System.Xml.Serialization;


namespace RedSkies
{
	public class WorldSprite:SpriteUV
	{
		private readonly SpriteList parentList;
		public int WorldX {get;set;}
		public int WorldY {get;set;}
		
		public WorldSprite (TextureInfo tI, Rectangle rect, SpriteList parentList, int x, int y):base(tI)
		{
			Position=new Vector2(rect.X,rect.Y);
			Quad.S = new Vector2(rect.Width, rect.Height);
			parentList.AddChild(this);				
			this.parentList=parentList;
			WorldX=x;
			WorldY=y;
		}
		
		public void Remove()
		{
			parentList.RemoveChild(this, true);
		}
	}
}

